
<!doctype html>
<html lang="ch">
<head>
	<title>训练日课程列表</title>
	<meta charset="utf-8" />
	<meta name="apple-touch-fullscreen" content="YES" />
	<meta name="format-detection" content="telephone=no" />
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<meta name="apple-mobile-web-app-status-bar-style" content="black" />
  <meta name="viewport" content="width=320, user-scalable=no">

	<meta http-equiv="Expires" CONTENT="0">
	<meta http-equiv="Cache-Control" CONTENT="no-cache">	
	<meta http-equiv="Pragma" CONTENT="no-cache">

	<link rel="stylesheet" type="text/css" href="/include/main.css" />
  <link rel="stylesheet" href="/css/swiper.min.css">
  <script type="text/javascript" src='/include/jquery.1.10.1.min.js'></script>
  <script type="text/javascript" src='/include/layer.m.js'></script>
  <script src="/js/swiper.min.js"></script>
   
</head>
 
<body>
 
<div class="swiper-container" id="coachlist-swiper-container">
    <div class="swiper-wrapper">
        <div class="swiper-slide  "><a href="/index.php/coachlist"><img src="/images/ad/topad3.jpg" style="width:100%"></a></div>
        <div class="swiper-slide  "><a href="/index.php/register"><img src="/images/ad/topad2.jpg" style="width:100%"></a></div>
        <div class="swiper-slide  "><a href="/index.php/courselist"><img src="/images/ad/topad1.jpg" style="width:100%"></a></div>
    </div>
     <div class="swiper-pagination"></div>
 </div>

<div class="selebox" style="display:none">
    <ul class="seleul clearfix">
        <li class="">类别</li>
        <li>人群</li>
        <li>筛选</li>
    </ul>
    <div class="typesele_pad">
    </div>
</div>

<ul class="classul">


<?php foreach ($courselist as $course): ?>
    <li cid="<?=$course->id?>">
         <div class="classbg" style="background-image:url(<?=$course->course_img?>)"></div>
         <div class="classdetail">
              <div class="ashbg"></div>
              <h3><?=$course->course_title?></h3>
              <h4><?=$course->startdate?> <?=$course->venue_name?></h4>
              <h5><?=$course->current_num?>/<?=$course->groupnum?></h5>
              <h6><span class="redspan">￥<?=$course->price?></span> <?=$course->course_length?>课时</h6>
         </div>
    </li>
<?php endforeach; ?>


</ul>

<script src="/js/main.js"></script>

<script>        
  var mySwiper = new Swiper ('.swiper-container', {
        loop: true,
       // 如果需要分页器
       pagination: '.swiper-pagination',
       paginationClickable: true
  });        

  $(".classul li").on('click',function(){
      var cid = $(this).attr("cid");
      location.href="/index.php/course?cid="+cid;
  });

</script>
 

</body>
</html>